home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!genesis.demon.co.uk
- From: Lawrence Kirby <fred@genesis.demon.co.uk>
- Newsgroups: comp.lang.c
- Subject: Re: Check if a file exists?
- Date: Mon, 15 Apr 96 12:01:34 GMT
- Organization: none
- Message-ID: <829569694snz@genesis.demon.co.uk>
- References: <829565947.AA00181@escan.demon.co.uk>
- Reply-To: fred@genesis.demon.co.uk
- X-NNTP-Posting-Host: genesis.demon.co.uk
- X-Newsreader: Demon Internet Simple News v1.27
- X-Mail2News-Path: genesis.demon.co.uk
-
- In article <829565947.AA00181@escan.demon.co.uk>
- bill@escan.demon.co.uk "Bill Birrell" writes:
-
- > > That would be implemented in Unix using stat(),
- > > however that isn't a standard
- > > C library function.
- >
- > That's odd, Lawrence. K&R Edn 1, Ch 8, P 170 says it is, as part of the
- >unix system interface, and refers to sys/stat.h for the definition of the stat
- >structure.
-
- That just means it is defined as part of the Unix system interface. It
- doesn't make it part of the standard C library.
-
- >Compatibility is listed as:-
- >
- > unix,
- > 16 bit: dos, qwin,win, win dll
- > 32 bit: Dos32X
- >
- > Note:
- > use _stat for compatibility with ANSI naming conventions of non-ANSI
- ^^^^^^^^
- >functions. Use stat and link with OLDNAMES.LIB for UNIX compatibility.
-
- This says it isn't an ANSI C function.
-
- --
- -----------------------------------------
- Lawrence Kirby | fred@genesis.demon.co.uk
- Wilts, England | 70734.126@compuserve.com
- -----------------------------------------
-